﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using IQKS.AWP.DataAccessLayer;
using IQKS.AWP.BusinessObject;


namespace IQKS.AWP.BusinessAccessLayer
{
    public class CandidateBriefDetailBAL
    {


        public DataSet GetCandidateBriefByCandidateID(params object[] param)
        {
            DataSet objDs;

            try
            {
                objDs = new CandidateBriefDetailDAL().GetCandidateBriefByCandidateID(param);

            }
            catch (Exception exception)
            {
                throw new ApplicationException(exception.Message);
            }
            return objDs;
        }
        
        public DataSet GetCandidateCalendarUpdateByAssessorFlg(params object[] param)
        {
            DataSet objDs;

            try
            {
                objDs = new CandidateBriefDetailDAL().GetCandidateCalendarUpdateByAssessorFlg(param);

            }
            catch (Exception exception)
            {
                throw new ApplicationException(exception.Message);
            }
            return objDs;
        }

        public DataSet GetGDPartnerValidation(params object[] param)
        {
            DataSet objDs;

            try
            {
                objDs = new CandidateBriefDetailDAL().GetGDPartnerValidation(param);

            }
            catch (Exception exception)
            {
                throw new ApplicationException(exception.Message);
            }
            return objDs;
        }


        public DataSet GetAssessorAvailability(params object[] param)
        {
            DataSet objDs;

            try
            {
                objDs = new CandidateBriefDetailDAL().GetAssessorAvailability(param);

            }
            catch (Exception exception)
            {
                throw new ApplicationException(exception.Message);
            }
            return objDs;
        }

        public DataSet GetCandidateBriefDetailByCandidateID(params object[] param)
        {
            DataSet objDs;

            try
            {
                objDs = new CandidateBriefDetailDAL().GetCandidateBriefDetailByCandidateID(param);

            }
            catch (Exception exception)
            {
                throw new ApplicationException(exception.Message);
            }
            return objDs;
        }

        public DataSet GetCandidateBriefDocumentByDocumentType(params object[] param)
        {
            try
            {
                return new CandidateBriefDetailDAL().GetCandidateBriefDocumentByDocumentType(param);
            }
            catch (Exception ex)
            {
                throw new ApplicationException(ex.Message);
            }
        }

        public object SetCandidateBriefDocument(params object[] param)
        {
            try
            {
                return new CandidateBriefDetailDAL().SetCandidateBriefDocument(param);
            }
            catch (Exception ex)
            {
                throw new ApplicationException(ex.Message);
            }
        }

        public object SetCandidateGroupDiscussionGuide(params object[] param)
        {
            try
            {
                return new CandidateBriefDetailDAL().SetCandidateGroupDiscussionGuide(param);
            }
            catch (Exception ex)
            {
                throw new ApplicationException(ex.Message);
            }
        }
        

        public object SetDeleteCandidateBriefDocument(params object[] param)
        {
            try
            {
                return new CandidateBriefDetailDAL().SetDeleteCandidateBriefDocument(param);
            }
            catch (Exception ex)
            {
                throw new ApplicationException(ex.Message);
            }
        }



        public object SetCandidateBriefByStatusID(params object[] param)
        {
            try
            {
                return new CandidateBriefDetailDAL().SetCandidateBriefByStatusID(param);
            }
            catch (Exception ex)
            {
                throw new ApplicationException(ex.Message);
            }
        }

        public object SetCandidateBriefByStatusIDPreFinish(params object[] param)
        {
            try
            {
                return new CandidateBriefDetailDAL().SetCandidateBriefByStatusIDPreFinish(param);
            }
            catch (Exception ex)
            {
                throw new ApplicationException(ex.Message);
            }
        }

        public object SetCandidateMoreComments(params object[] param)
        {
            try
            {
                return new CandidateBriefDetailDAL().SetCandidateMoreComments(param);
            }
            catch (Exception ex)
            {
                throw new ApplicationException(ex.Message);
            }
        }

        public object SetCandidateGroupDiscussion(params object[] param)
        {
            try
            {
                return new CandidateBriefDetailDAL().SetCandidateGroupDiscussion(param);
            }
            catch (Exception ex)
            {
                throw new ApplicationException(ex.Message);
            }
        }
        public object SetAssessorCandidateGroupDiscussion(params object[] param)
        {
            try
            {
                return new CandidateBriefDetailDAL().SetAssessorCandidateGroupDiscussion(param);
            }
            catch (Exception ex)
            {
                throw new ApplicationException(ex.Message);
            }
        }
        public DataSet GetCandidateGroupDiscussion(params object[] param)
        {
            try
            {
                return new CandidateBriefDetailDAL().GetCandidateGroupDiscussion(param);
            }
            catch (Exception ex)
            {
                throw new ApplicationException(ex.Message);
            }
        }
        public DataSet GetAssessorCalendarUpdateLog(params object[] param)
        {
            try
            {
                return new CandidateBriefDetailDAL().GetAssessorCalendarUpdateLog(param);
            }
            catch (Exception ex)
            {
                throw new ApplicationException(ex.Message);
            }
        }

        public DataSet GetCandidateName(params object[] param)
        {
            try
            {
                return new CandidateBriefDetailDAL().GetCandidateName(param);
            }
            catch (Exception ex)
            {
                throw new ApplicationException(ex.Message);
            }
        }


    }
}
